<?php
require_once("conn.php");
if(isset($_GET['age'])){
	$age = $_GET['age'];
	$sql = "SELECT packid,packcode,name FROM t_pack WHERE age = '".$age."' ORDER BY packcode";
	$db = new DBC();
	$data = $db->fetchData($sql);
	echo json_encode($data);
}
?>